package com.ls.controller.booknote;

import com.ls.controller.booknote.model.AddBookNoteModel;
import com.ls.controller.booth.model.AddBoothModel;
import com.ls.service.IBookNoteService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * @ClassName BookNoteAppController
 * @Description app跟进记录控制器
 *
 * @author pengyu
 * @since 2024-06-28
 */
@Api(value = "app跟进记录", tags = "app跟进记录")
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/bookNoteApp")
public class BookNoteAppController {
    private final IBookNoteService service;
    /**客户跟进记录  根据联系人id，查询联系人全部跟进记录*/
    @GetMapping("getBookNote")
    public ResultData getBookNote(Long linkmanId){
        return service.getBookNote(linkmanId);
    }
    /**添加跟进记录*/
    @PostMapping(value = "add")
    public ResultData add(@Valid @RequestBody AddBookNoteModel model) {
        return service.add(model);
    }
}
